package com.wisezone.workflow.dao;

import java.util.List;

import com.wisezone.common.dao.BaseDao;
import com.wisezone.workflow.bean.WfDataDictionary;
import com.wisezone.workflow.exception.WfDaoException;

/**
 * 流程数据字典接口
 * 
 * @author tss 2009-09-05
 * 
 */
public interface WfDataDictionaryDao extends BaseDao {

	/**
	 * 获得数据字典对象
	 */
	public WfDataDictionary getDataDictionary(String category, String code)
			throws WfDaoException;

	/**
	 * 获得数据字典ID
	 */
	public Long getDataDictionaryId(String category, String code)
			throws WfDaoException;

	/**
	 * 获得数据字典集合
	 * 
	 * @param category
	 *            数据字典类别
	 * @return
	 * @throws WfDaoException
	 */
	public List<WfDataDictionary> listByCategory(String category)
			throws WfDaoException;

	/**
	 * 获得数据字典集合
	 * 
	 * @param parentId
	 *            父ID
	 * @return
	 * @throws WfDaoException
	 */
	public List<WfDataDictionary> listByParentId(Long parentId)
			throws WfDaoException;

}